package com.hqd.ch03.test.web.v43;


import com.hqd.ch03.v43.context.stereotype.Controller;
import com.hqd.ch03.v43.web.bind.annotation.RequestMapping;
import com.hqd.ch03.v43.web.ui.Model;

@Controller
public class HelloController {

    @RequestMapping("/hello")
    public String hello(Model model) {
        model.addAttribute("message", "Form submitted successfully!");
        return "hello";
    }
}
